package com.kb.design.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.kb.design.annotation.FieldMeta;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * (CustomUser)实体类
 *
 * @author makejava
 * @since 2023-08-22 10:57:05
 */
@Data
@TableName("design_user")
public class CustomUser extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -27900783594188516L;

    @TableId(type = IdType.AUTO)
    private Long id;
    //用户权限
    @TableField(exist = false)
    private String postStr;
    @TableField(exist = false)
    private String roleStr;
    /**
     * 客户名称对应爱速搭的 user表的nick_name
     */
    private String name;
    @TableField(exist = false)
    private String name2;
    /**
     * 客户code 对应爱速搭的 user表的name
     */
    private String code;
    
    private String email;
    
    private String phone;
    /**
     * 部门id
     */
    private Long deptId;
    private String deptName;
    @TableField(exist = false)
    private String nameAndCode;
    @TableField(exist = false)
    private String nameAndDept;
    /**
     * 父类id 用于查询自己创建的用户
     */
//    private Long parentId;
    /**
     * '用户性别（1男 2女 3未知）'
     */
    private String sex;
    
    private String password;
    /**
     * '帐号状态（0正常 1停用）'
     */
    private String status;
    /**
     *  '删除标志（0代表存在 2代表删除）',
     */
    private String delFlag;

    
    private String createByName;
    private String remark;
    
    private String updateByName;
    /** 入职时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate entryDate;
    /** 目标PIN数 */
    private BigDecimal targetPin;

}

